package com.huawei.chapter01.project2;

//测试类
public class IAlarmTest {
    //测试IAlarm接口及其子类
    public static void main(String[] args) {
        IAlarm bicycle=new SecurityBicycle("飞鸽");
        IAlarm door=new SecurityDoor("卫士");
        bicycle.alarm();
        door.alarm();
    }
}

